#define _CRT_SECURE_NO_WARNINGS 1
#include<assert.h>
#include<iostream>
using std::cout;
using std::endl;

#include"string.h"
#include"vector.h"
#include"list.h"
#include"stack.h"
#include"queue.h"
#include"priority_queue.h"
using namespace bit;
using namespace fengxi;


#include<list>
int main()
{
	//fengxi::test_list_reverse();
	fengxi::list<int> l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);
	l.push_back(3);
	fengxi::list<int>::reverse_iterator rit = l.rbegin();
	
	fengxi::list<int>::reverse_iterator rit2 = rit++;
	*rit2 = 10;
	while (rit2 != l.rend())
	{
		cout << *rit2 << " ";
		++rit2;
	}
	/*std::string s;
	s.push_back('a');
	s.push_back('b');
	s.push_back('\0');
	s.push_back('c');

	s.reserve(20);*/
	//std::string s;
	//s.push_back('a');
	//s.push_back('b');
	//s.push_back('c');
	//s.push_back('c');
	//s.push_back('c');
	//s.push_back('c');

	//s.erase(3,1);
	//bit::testString();

	//fengxi::test();
	//fengxi::test_stack();
	//fengxi::test_list1();
//	fengxi::test_priority_queue();


	return 0;
}